<div class="inmodal">
    <div class="modal-header">
        <h4 class="modal-title">{{operation | translate}}(ID:{{contact.id}})</h4>
    </div>
    <div class="modal-body">
        <form role="form" name="form_contact" novalidate class="form-horizontal">
            <div class="form-group"><label class="col-sm-3 control-label">{{'SETTING.NAME' | translate}}</label>
                <div class="col-sm-9">
                    <input ng-model="contact.name" type="text" name="name" class="form-control" required="">
                    <div class="m-t-xs" ng-show="form_contact.name.$invalid && form_contact.name.$dirty">
                        <small class="text-danger" ng-show="form_contact.name.$error.required">{{'SETTING.INPUT_NAME' | translate}}</small>
                    </div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="form-group"><label class="col-sm-3 control-label">{{'CONTACT.EMAIL' | translate}}</label>
                <div class="col-sm-9">
                    <input ng-model="contact.email" type="email" name="email" class="form-control" required="">
                    <div class="m-t-xs" ng-show="form_contact.email.$invalid && form_contact.email.$dirty">
                        <small class="text-danger" ng-show="form_contact.email.$error.required">{{'CONTACT.INPUT_EMAIL' | translate}}</small>
                        <small class="text-danger" ng-show="form_contact.email.$error">{{'CONTACT.INVALID_EMAIL' | translate}}</small>
                    </div>
                </div>
            </div>
            <div class="form-group"><label class="col-sm-3 control-label">{{'CONTACT.PHONE' | translate}}</label>
                <div class="col-sm-9">
                    <input ng-model="contact.phone" type="tel" name="phone" class="form-control" required="">
                    <div class="m-t-xs" ng-show="form_contact.phone.$invalid && form_contact.phone.$dirty">
                        <small class="text-danger" ng-show="form_contact.phone.$error.required">{{'CONTACT.INPUT_PHONE' | translate}}</small>
                        <small class="text-danger" ng-show="form_contact.phone.$error">{{'SETTING.INVALID_FORMAT' | translate}}</small>
                    </div>
                </div>
            </div>
            <div class="form-group"><label class="col-sm-3 control-label">{{'SETTING.DESCRIPTION' | translate}} ({{'SETTING.OPTIONAL' | translate}})</label>
                <div class="col-sm-9">
                    <input ng-model="contact.description" type="text" name="contactdescription" class="form-control" >
                    <div class="m-t-xs" ng-show="form_contact.description.$invalid && form_contact.description.$dirty">
                        <small class="text-danger" ng-show="form_contact.description.$error.required">{{'SETTING.INPUT_DESCRIPTION' | translate}}</small>
                        <small class="text-danger" ng-show="form_contact.description.$error">{{'SETTING.INVALID_FORMAT' | translate}}</small>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-white" ng-click="cancel()">{{'SETTING.CANCEL' | translate}}</button>
        <button type="button" ng-disabled="form_contact.$invalid" class="btn btn-primary" ng-click="ok()">{{'SETTING.SAVE' | translate}}</button>
    </div>
</div>
